<?php

require_once 'PipesImpl/Config.php';
require_once 'PipesImpl/Route.php';

class PipesCore_Helpers_ActionByRoute
{
	private $_base_uri = null;

	public function __construct(PipesImpl_Config $config) {
		$this->_base_uri = $config->base_uri;
	}

	public function factory(PipesImpl_Route $route) {
		return "{$this->_base_uri}{$route->controller}/{$route->action}";
	}
}

